package com.ourteam.product.requirement.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-05-03 16:45:15
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductGlossary implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private String code;

    /**
     * Attribute code Be Seted Falg
     */
    private boolean codeSetted = false;

    /**
    * Attribute code is Null Falg
    */
    private boolean codeNull = false;
    private String content;

    /**
     * Attribute content Be Seted Falg
     */
    private boolean contentSetted = false;

    /**
    * Attribute content is Null Falg
    */
    private boolean contentNull = false;
    private java.util.Date createDate;

    /**
     * Attribute createDate Be Seted Falg
     */
    private boolean createDateSetted = false;

    /**
    * Attribute createDate is Null Falg
    */
    private boolean createDateNull = false;
    private long creatorId;

    /**
     * Attribute creatorId Be Seted Falg
     */
    private boolean creatorIdSetted = false;

    /**
    * Attribute creatorId is Null Falg
    */
    private boolean creatorIdNull = false;
    private long lastEditorId;

    /**
     * Attribute lastEditorId Be Seted Falg
     */
    private boolean lastEditorIdSetted = false;

    /**
    * Attribute lastEditorId is Null Falg
    */
    private boolean lastEditorIdNull = false;
    private java.util.Date lastEditDate;

    /**
     * Attribute lastEditDate Be Seted Falg
     */
    private boolean lastEditDateSetted = false;

    /**
    * Attribute lastEditDate is Null Falg
    */
    private boolean lastEditDateNull = false;
    private String name;

    /**
     * Attribute name Be Seted Falg
     */
    private boolean nameSetted = false;

    /**
    * Attribute name is Null Falg
    */
    private boolean nameNull = false;
    private long productId;

    /**
     * Attribute productId Be Seted Falg
     */
    private boolean productIdSetted = false;

    /**
    * Attribute productId is Null Falg
    */
    private boolean productIdNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private long sinceVersionId;

    /**
     * Attribute sinceVersionId Be Seted Falg
     */
    private boolean sinceVersionIdSetted = false;

    /**
    * Attribute sinceVersionId is Null Falg
    */
    private boolean sinceVersionIdNull = false;
    private String type;

    /**
     * Attribute type Be Seted Falg
     */
    private boolean typeSetted = false;

    /**
    * Attribute type is Null Falg
    */
    private boolean typeNull = false;
    private String lastEditorName;

    /**
     * Attribute lastEditorName Be Seted Falg
     */
    private boolean lastEditorNameSetted = false;

    /**
    * Attribute lastEditorName is Null Falg
    */
    private boolean lastEditorNameNull = false;
    private String sinceVersion;

    /**
     * Attribute sinceVersion Be Seted Falg
     */
    private boolean sinceVersionSetted = false;

    /**
    * Attribute sinceVersion is Null Falg
    */
    private boolean sinceVersionNull = false;
    private long productDefineId;

    /**
     * Attribute productDefineId Be Seted Falg
     */
    private boolean productDefineIdSetted = false;

    /**
    * Attribute productDefineId is Null Falg
    */
    private boolean productDefineIdNull = false;

    public ProductGlossary() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get code
         *
         * @return String
         */
    final public String getCode() {
        if (isCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(code);
        }
    }

    /**
     * Set code
     *
     * @param String
     */
    final public void setCode(String code) {
        this.code = StringUtils.trim(code);

        this.codeSetted = true;

        this.setCodeNull(this.code == null);
    }

    /**
     * Get code Has Been Setted
     *
     * @return boolean
     */
    final public boolean isCodeSetted() {
        return this.codeSetted;
    }

    /**
     * Set code Null
     *
     */
    final public void setCodeNull() {
        this.codeNull = true;
    }

    final public void setCodeNull(boolean aNullFlag) {
        this.codeNull = aNullFlag;
    }

    final public boolean isCodeNull() {
        return this.codeNull;
    }

    /**
         * Get content
         *
         * @return String
         */
    final public String getContent() {
        if (isContentNull()) {
            return null;
        } else {
            return StringUtils.trim(content);
        }
    }

    /**
     * Set content
     *
     * @param String
     */
    final public void setContent(String content) {
        this.content = StringUtils.trim(content);

        this.contentSetted = true;

        this.setContentNull(this.content == null);
    }

    /**
     * Get content Has Been Setted
     *
     * @return boolean
     */
    final public boolean isContentSetted() {
        return this.contentSetted;
    }

    /**
     * Set content Null
     *
     */
    final public void setContentNull() {
        this.contentNull = true;
    }

    final public void setContentNull(boolean aNullFlag) {
        this.contentNull = aNullFlag;
    }

    final public boolean isContentNull() {
        return this.contentNull;
    }

    /**
         * Get createDate
         *
         * @return java.util.Date
         */
    final public java.util.Date getCreateDate() {
        return createDate;
    }

    /**
     * Set createDate
     *
     * @param java.util.Date
     */
    final public void setCreateDate(java.util.Date createDate) {
        this.createDate = createDate;

        this.createDateSetted = true;

        this.setCreateDateNull(this.createDate == null);
    }

    /**
     * Get createDate Has Been Setted
     *
     * @return boolean
     */
    final public boolean isCreateDateSetted() {
        return this.createDateSetted;
    }

    /**
     * Set createDate Null
     *
     */
    final public void setCreateDateNull() {
        this.createDateNull = true;
    }

    final public void setCreateDateNull(boolean aNullFlag) {
        this.createDateNull = aNullFlag;
    }

    final public boolean isCreateDateNull() {
        return this.createDateNull;
    }

    /**
         * Get creatorId
         *
         * @return long
         */
    final public long getCreatorId() {
        return creatorId;
    }

    /**
     * Set creatorId
     *
     * @param long
     */
    final public void setCreatorId(long creatorId) {
        this.creatorId = creatorId;

        this.creatorIdSetted = true;

        this.setCreatorIdNull(false);
    }

    /**
     * Get creatorId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isCreatorIdSetted() {
        return this.creatorIdSetted;
    }

    /**
     * Set creatorId Null
     *
     */
    final public void setCreatorIdNull() {
        this.creatorIdNull = true;
    }

    final public void setCreatorIdNull(boolean aNullFlag) {
        this.creatorIdNull = aNullFlag;
    }

    final public boolean isCreatorIdNull() {
        return this.creatorIdNull;
    }

    /**
         * Get lastEditorId
         *
         * @return long
         */
    final public long getLastEditorId() {
        return lastEditorId;
    }

    /**
     * Set lastEditorId
     *
     * @param long
     */
    final public void setLastEditorId(long lastEditorId) {
        this.lastEditorId = lastEditorId;

        this.lastEditorIdSetted = true;

        this.setLastEditorIdNull(false);
    }

    /**
     * Get lastEditorId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLastEditorIdSetted() {
        return this.lastEditorIdSetted;
    }

    /**
     * Set lastEditorId Null
     *
     */
    final public void setLastEditorIdNull() {
        this.lastEditorIdNull = true;
    }

    final public void setLastEditorIdNull(boolean aNullFlag) {
        this.lastEditorIdNull = aNullFlag;
    }

    final public boolean isLastEditorIdNull() {
        return this.lastEditorIdNull;
    }

    /**
         * Get lastEditDate
         *
         * @return java.util.Date
         */
    final public java.util.Date getLastEditDate() {
        return lastEditDate;
    }

    /**
     * Set lastEditDate
     *
     * @param java.util.Date
     */
    final public void setLastEditDate(java.util.Date lastEditDate) {
        this.lastEditDate = lastEditDate;

        this.lastEditDateSetted = true;

        this.setLastEditDateNull(this.lastEditDate == null);
    }

    /**
     * Get lastEditDate Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLastEditDateSetted() {
        return this.lastEditDateSetted;
    }

    /**
     * Set lastEditDate Null
     *
     */
    final public void setLastEditDateNull() {
        this.lastEditDateNull = true;
    }

    final public void setLastEditDateNull(boolean aNullFlag) {
        this.lastEditDateNull = aNullFlag;
    }

    final public boolean isLastEditDateNull() {
        return this.lastEditDateNull;
    }

    /**
         * Get name
         *
         * @return String
         */
    final public String getName() {
        if (isNameNull()) {
            return null;
        } else {
            return StringUtils.trim(name);
        }
    }

    /**
     * Set name
     *
     * @param String
     */
    final public void setName(String name) {
        this.name = StringUtils.trim(name);

        this.nameSetted = true;

        this.setNameNull(this.name == null);
    }

    /**
     * Get name Has Been Setted
     *
     * @return boolean
     */
    final public boolean isNameSetted() {
        return this.nameSetted;
    }

    /**
     * Set name Null
     *
     */
    final public void setNameNull() {
        this.nameNull = true;
    }

    final public void setNameNull(boolean aNullFlag) {
        this.nameNull = aNullFlag;
    }

    final public boolean isNameNull() {
        return this.nameNull;
    }

    /**
         * Get productId
         *
         * @return long
         */
    final public long getProductId() {
        return productId;
    }

    /**
     * Set productId
     *
     * @param long
     */
    final public void setProductId(long productId) {
        this.productId = productId;

        this.productIdSetted = true;

        this.setProductIdNull(false);
    }

    /**
     * Get productId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProductIdSetted() {
        return this.productIdSetted;
    }

    /**
     * Set productId Null
     *
     */
    final public void setProductIdNull() {
        this.productIdNull = true;
    }

    final public void setProductIdNull(boolean aNullFlag) {
        this.productIdNull = aNullFlag;
    }

    final public boolean isProductIdNull() {
        return this.productIdNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get sinceVersionId
         *
         * @return long
         */
    final public long getSinceVersionId() {
        return sinceVersionId;
    }

    /**
     * Set sinceVersionId
     *
     * @param long
     */
    final public void setSinceVersionId(long sinceVersionId) {
        this.sinceVersionId = sinceVersionId;

        this.sinceVersionIdSetted = true;

        this.setSinceVersionIdNull(false);
    }

    /**
     * Get sinceVersionId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSinceVersionIdSetted() {
        return this.sinceVersionIdSetted;
    }

    /**
     * Set sinceVersionId Null
     *
     */
    final public void setSinceVersionIdNull() {
        this.sinceVersionIdNull = true;
    }

    final public void setSinceVersionIdNull(boolean aNullFlag) {
        this.sinceVersionIdNull = aNullFlag;
    }

    final public boolean isSinceVersionIdNull() {
        return this.sinceVersionIdNull;
    }

    /**
         * Get type
         *
         * @return String
         */
    final public String getType() {
        if (isTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(type);
        }
    }

    /**
     * Set type
     *
     * @param String
     */
    final public void setType(String type) {
        this.type = StringUtils.trim(type);

        this.typeSetted = true;

        this.setTypeNull(this.type == null);
    }

    /**
     * Get type Has Been Setted
     *
     * @return boolean
     */
    final public boolean isTypeSetted() {
        return this.typeSetted;
    }

    /**
     * Set type Null
     *
     */
    final public void setTypeNull() {
        this.typeNull = true;
    }

    final public void setTypeNull(boolean aNullFlag) {
        this.typeNull = aNullFlag;
    }

    final public boolean isTypeNull() {
        return this.typeNull;
    }

    /**
         * Get lastEditorName
         *
         * @return String
         */
    final public String getLastEditorName() {
        if (isLastEditorNameNull()) {
            return null;
        } else {
            return StringUtils.trim(lastEditorName);
        }
    }

    /**
     * Set lastEditorName
     *
     * @param String
     */
    final public void setLastEditorName(String lastEditorName) {
        this.lastEditorName = StringUtils.trim(lastEditorName);

        this.lastEditorNameSetted = true;

        this.setLastEditorNameNull(this.lastEditorName == null);
    }

    /**
     * Get lastEditorName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isLastEditorNameSetted() {
        return this.lastEditorNameSetted;
    }

    /**
     * Set lastEditorName Null
     *
     */
    final public void setLastEditorNameNull() {
        this.lastEditorNameNull = true;
    }

    final public void setLastEditorNameNull(boolean aNullFlag) {
        this.lastEditorNameNull = aNullFlag;
    }

    final public boolean isLastEditorNameNull() {
        return this.lastEditorNameNull;
    }

    /**
         * Get sinceVersion
         *
         * @return String
         */
    final public String getSinceVersion() {
        if (isSinceVersionNull()) {
            return null;
        } else {
            return StringUtils.trim(sinceVersion);
        }
    }

    /**
     * Set sinceVersion
     *
     * @param String
     */
    final public void setSinceVersion(String sinceVersion) {
        this.sinceVersion = StringUtils.trim(sinceVersion);

        this.sinceVersionSetted = true;

        this.setSinceVersionNull(this.sinceVersion == null);
    }

    /**
     * Get sinceVersion Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSinceVersionSetted() {
        return this.sinceVersionSetted;
    }

    /**
     * Set sinceVersion Null
     *
     */
    final public void setSinceVersionNull() {
        this.sinceVersionNull = true;
    }

    final public void setSinceVersionNull(boolean aNullFlag) {
        this.sinceVersionNull = aNullFlag;
    }

    final public boolean isSinceVersionNull() {
        return this.sinceVersionNull;
    }

    /**
         * Get productDefineId
         *
         * @return long
         */
    final public long getProductDefineId() {
        return productDefineId;
    }

    /**
     * Set productDefineId
     *
     * @param long
     */
    final public void setProductDefineId(long productDefineId) {
        this.productDefineId = productDefineId;

        this.productDefineIdSetted = true;

        this.setProductDefineIdNull(false);
    }

    /**
     * Get productDefineId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProductDefineIdSetted() {
        return this.productDefineIdSetted;
    }

    /**
     * Set productDefineId Null
     *
     */
    final public void setProductDefineIdNull() {
        this.productDefineIdNull = true;
    }

    final public void setProductDefineIdNull(boolean aNullFlag) {
        this.productDefineIdNull = aNullFlag;
    }

    final public boolean isProductDefineIdNull() {
        return this.productDefineIdNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductGlossary) == false) {
            return false;
        }

        ProductGlossary other = (ProductGlossary) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("code=");
        buffer.append(this.code);

        buffer.append("content=");
        buffer.append(this.content);

        buffer.append("createDate=");
        buffer.append(this.createDate);

        buffer.append("creatorId=");
        buffer.append(this.creatorId);

        buffer.append("lastEditorId=");
        buffer.append(this.lastEditorId);

        buffer.append("lastEditDate=");
        buffer.append(this.lastEditDate);

        buffer.append("name=");
        buffer.append(this.name);

        buffer.append("productId=");
        buffer.append(this.productId);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("lastEditorName=");
        buffer.append(this.lastEditorName);

        buffer.append("sinceVersionId=");
        buffer.append(this.sinceVersionId);

        buffer.append("sinceVersion=");
        buffer.append(this.sinceVersion);

        buffer.append("productDefineId=");
        buffer.append(this.productDefineId);

        buffer.append("type=");
        buffer.append(this.type);

        buffer.append("]");

        return buffer.toString();
    }
}
